<?php

use app\widgets\Alert;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use app\modules\admin\assets\AdminAsset;

AdminAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta name="referrer" content="never">
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <style>
        .wrap > .container {
            padding: 0px 15px 20px;
        }
        .page-header {
            padding-bottom: 9px;
            margin: 20px 0 30px;
            border-bottom: 1px solid #eee;
        }
        .form {
            margin: 0 auto;
            margin-top: 20%;
            width: 20%;
        }
    </style>
</head>
<body>
<?php $this->beginBody() ?>

<div class="wrap">
    <div class="container">
        <?= Alert::widget() ?>

        <form class="form" action="<?= Url::to(['install/login']) ?>" method="post">
            <div class="form-group">
                <label for="code">激活码</label>
                <input type="text" class="form-control" id="code" name="code" placeholder="请输入激活码" required>            
            </div>
            <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
            <button type="submit" class="btn btn-default">激活</button>
        </form>

    </div>
</div>

<footer class="footer">
<div class="container">
    <p class="pull-left">&copy; Wechat Member Center <?= date('Y') ?></p>
    <p class="pull-right">技术支持 XGATE Chengdu Co.Ltd </p>
</div>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
